<template>
	<view class="xxzs">
		<view class="xgimg">
			<image :src="url + details.cover" mode="aspectFill"></image>
		</view>
		<view class="xgtext">
			{{details.title}}
		</view>
		<view class="xgneir">
			<rich-text :nodes="details.content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				details: {},
				url: ''
			};
		},
		onShow() {
			this.url = getApp().globalData.url + '/'
			this.details = getApp().globalData.empowerment
			console.log(getApp().globalData.empowerment);
		},
		methods: {

		}
	}
</script>

<style lang="less">
	.xxzs {
		// height: 465rpx;
		margin: 0 auto;
		background: #FFFFFF;
		margin-top: 16rpx;
		border-radius: 20rpx;
		padding-bottom: 32rpx;
		box-sizing: border-box;

		.xgimg {
			width: 100%;

			image {
				width: 100%;
				border-radius: 20rpx 20rpx 0 0;
			}
		}

		.xgtext {

			font-weight: 500;
			font-size: 32rpx;
			color: #333333;
			font-style: normal;
			text-transform: none;
			margin-top: 20rpx;
			margin-bottom: 15rpx;
			padding-right: 20rpx;
			padding-left: 20rpx;
			box-sizing: border-box;
		}

		.xgneir {
			;
			font-weight: 400;
			font-size: 24rpx;
			color: #999999;
			line-height: 42rpx;

			font-style: normal;
			text-transform: none;
			padding-right: 20rpx;
			padding-left: 20rpx;
			box-sizing: border-box;
		}

	}
</style>